# Maintainer: Antonio Rojas <arojas@archlinux.org>

_pipname=primecountpy
pkgname=python-$_pipname
pkgver=0.1.0
pkgrel=2
pkgdesc='Cython interface to the C++ library primecount'
arch=(loong64 x86_64)
url='https://github.com/dimpase/primecountpy'
license=(GPL3)
depends=(python-cysignals primecount)
makedepends=(cython python-setuptools)
source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
sha256sums=('78fe7cc32115f0669a45d7c90faaf39f7ce3939e39e2e7e5f14c17fe4bff0676')

build() {
  cd $_pipname-$pkgver
  python setup.py build
}

package() {
  cd $_pipname-$pkgver 
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
